package com.ipay.wechat.dao;

import java.util.List;

import org.apache.ibatis.annotations.Param;
import org.springframework.web.bind.annotation.RequestParam;
import com.ipay.dao.BaseDao;
import com.ipay.wechat.pojo.Cashiers;

public interface CashiersDao extends BaseDao<Cashiers>{

	Cashiers findCashierByMobile(@Param("mobilephone") String mobilephone,@Param("activateState") int activateState);
	
	void insertCashier(Cashiers cashiers);
	
	int updateCashier(Cashiers cashiers);
	
	int delCashier(String mobilephone,@RequestParam String merchant_id);

	List<Cashiers> findCashierList(Cashiers cashiers);
	
	Cashiers findCashierByMobileAndState(@Param("mobilephone") String mobilephone,@Param("activateState") Integer activateState);

	Cashiers findCashierByOpenid(@Param("openid") String openid,@Param("activateState") Integer activateState);

	int updateCashierState(@Param("activateState") String activateState,@Param("mobile") String mobile);
	
	int updateCashierByMobile(@Param("activateState") String activateState,@Param("mobile") String mobile);
	
	int updateIsNotify(@Param("id")Long id ,@Param("isNotify") int isNotify);
	
	List<Cashiers> findCashierByMerchantId(@Param("merchantId") String merchantId);
	
	Cashiers findCashierById(@Param("id") Long id );

}
